package com.company.project.upm.manager.common;

import com.base.common.constants.NumberConstants;
import com.company.project.upm.mapper.common.HealthMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @Description 健康检查Manager
 * @Author zhongbo.yu
 * @Date 2021/12/28
 */
@Component
public class HealthManager {

    @Autowired
    HealthMapper healthMapper;

    public Boolean check() {
        String check = healthMapper.check();
        if (NumberConstants.STRING_1.equals(check)) {
            return true;
        }
        return false;
    }
}
